{include file='people/public/header'}
  <div class="layout-boxed">
    <!-- start: SLIDING BAR (SB) -->
    <div id="slidingbar-area">
      <div id="slidingbar">
        <div class="row">
            {include file='people/public/top'}
          <div class="col-md-4 col-sm-4">
            <address class="margin-bottom-40">
             {$userinfo.user_name}
              <br>
              Email:
              <a href="#">
               {$userinfo.email}
              </a>
            </address>
            <a class="btn btn-transparent-white" href="#">
              <i class="fa fa-pencil"></i> Edit
            </a>
          </div>
          <!-- end: SLIDING BAR THIRD COLUMN -->
        </div>
        <div class="row">
          <!-- start: SLIDING BAR TOGGLE BUTTON -->
          <div class="col-md-12 text-center">
            <a href="#" class="sb_toggle"><i class="fa fa-chevron-up"></i></a>
          </div>
          <!-- end: SLIDING BAR TOGGLE BUTTON -->
        </div>
      </div>
    </div>
    <!-- end: SLIDING BAR -->
    <div class="main-wrapper">
      <!-- start: PAGESLIDE LEFT -->
      <a class="closedbar inner hidden-sm hidden-xs" href="#">
      </a>
      <nav id="pageslide-left" class="pageslide inner">
        <div class="" style="overflow:hidden;">
          <!-- start: SIDEBAR -->
          <div class="main-navigation left-wrapper transition-left">
            
            <div class="user-profile border-top padding-horizontal-10 block">
              <div class="inline-block">
                <img src="{:get_file_path($userinfo['avatar_file'])}" width="50" alt="">
              </div>
              <div class="inline-block">
                <h5 class="no-margin"> 您好： </h5>
                <h4 class="no-margin"> {$userinfo.user_name} </h4>
                <a class="btn user-options sb_toggle">
                  <i class="fa fa-cog"></i>
                </a>
              </div>
            </div>
            <!-- start: MAIN NAVIGATION MENU -->
    {include file='people/public/left'}
            <!-- end: MAIN NAVIGATION MENU -->
          </div>
          <!-- end: SIDEBAR -->
        </div>
      <!--   <div class="slide-tools">
          <div class="col-xs-6 text-left no-padding">
            <a class="btn btn-sm status" href="#">
              Status <i class="fa fa-dot-circle-o text-green"></i> <span>Online</span>
            </a>
          </div>
          <div class="col-xs-6 text-right no-padding">
            <a class="btn btn-sm log-out text-right" href="login_login.html">
              <i class="fa fa-power-off"></i> Log Out
            </a>
          </div>
        </div> -->
      </nav>
      <!-- end: PAGESLIDE LEFT -->
      <!-- start: PAGESLIDE RIGHT -->
     
      <!-- end: PAGESLIDE RIGHT -->
      <!-- start: MAIN CONTAINER -->
      <div class="main-container inner">
        <!-- start: PAGE -->
        <div class="main-content">
          <div class="container">
              <div class="row">
                  <div class="col-sm-12">
                    <!-- start: INLINE TABS PANEL -->
                    <div class="panel panel-white">
                      
                      <div class="panel-body">
                        <div class="row">
                          <div class="col-sm-13">
                            <div class="tabbable">
                              <ul id="myTab" class="nav nav-tabs">
                                <li class="<?php if(!input('type')){ echo "active";} ?>">
                                  <a href="{:url('people/people/question')}">
                                    我发布的问题
                                  </a>
                                </li>
                                <li class="<?php if(input('type')){ echo "active";} ?>">
                                  <a href="{:url('people/people/question',['type'=>'answer'])}" >
                                    我回答的问题
                                  </a>
                                </li>
                              
                              </ul>
                              <div class="tab-content">
                                <div class="tab-pane fade in active" id="myTab_example1" style="overflow:hidden;">
                                {if condition="is_array($question)"}
                                    <ul class="messages-list col-md-12" style="overflow:hidden;">
                                    {volist  name="question" id="v"}
                                      <li class="messages-item"  style="overflow:hidden;">
                                        <span title="Mark as starred" class="messages-item-star"><i class="fa fa-star"></i></span>
                                        <img alt="" src="{:get_file_path($v.avatar_file)}" class="messages-item-avatar">
                                        <span class="messages-item-from">{$v.user_name}</span>
                                        <div class="messages-item-time">
                                          <span class="text">{:date_friendly($v.add_time)}</span>
                                        </div>
                                        <span class="messages-item-subject">{$v.question_content}</span>
                                        <span class="messages-item-preview"><?php  echo msubstr(strip_tags(htmlspecialchars_decode($v['question_detail'])),0,80) ?></span>
                                      </li>
                                      {/volist}
                                      
                                    </ul>
                                  {$question->render()}
                                  {else /}
                                  <div class="alert alert-info">没有数据</div>
                                  {/if}
                                </div>
                           
                                
                              </div>
                            </div>
                          </div>
                        
                        </div>
                  
                       
                      </div>
                    </div>
                    <!-- end: INLINE TABS PANEL -->
                  </div>
                </div>
  


          </div>
          <div class="subviews">
            <div class="subviews-container"></div>
          </div>
        </div>
        <!-- end: PAGE -->
      </div>
    </div>
</div>
{include file='people/public/footer'}